//
//  ViewController.m
//  WMToolsDemo
//
//  Created by WTFSSD on 2016/12/11.
//  Copyright © 2016年 WTFSSD. All rights reserved.
//

#import "ViewController.h"

#import "WMData.h"

#import "Toast.h"

#import "NSString+Extention.h"

#import "WMToolsDemo-Swift.h"


@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];

}

- (IBAction)imagePickerClick:(UIButton *)sender {
    WMImagePickerController * vc = [[WMImagePickerController alloc] init];
    
    [self.navigationController pushViewController:vc animated:YES];
}


- (IBAction)Toast:(UIButton *)sender {
    [Toast makeToast:^(Toast *toast) {
        
       toast.setMsg(@"随机数是:".add(@(randomNumber(-100, 100))))
        .hiddenAfter(3)
        .show(AnimationTypeFade);
    }];
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];

}


@end
